<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>  


 

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
 
  </head>
  
  <body>
  <a href="./mytag">spring 标签</a> 
 
  <hr/>
 <%@ include file="/WEB-INF/view/layout/top.jsp" %> 
  
  <hr/>
 <br>
   
    <hr/>
  <c:forEach items="${listThemeViews}" var="row"> 

  
	 ID: <c:out value="${row.thId}"/><br/>
    内容: <c:out value="${row.thTitle}"/><br/>
    标题: <c:out value="${row.thContent}"/><br/>
  	赞:<c:out value="${row.thUp}"/><br/>
  	发帖时间:<c:out value="${row.thPublishedDate}"/><br/>
    发帖人: <c:out value="${row.loName}"/>--------ID: <c:out value="${row.loId}"/>------图片: <c:out value="${row.loImg}"/> <br/>
  <hr/>
  
  </c:forEach> 
  
       上一页 
       
  <c:if test="${  page >  3  }" >
  ......
  </c:if> 
  
 <c:forEach  var="item" begin="1" end="${countPage}" step="1" > 
 
  
  <c:if test="${ page-item  < 3 &&  page-item  > -3  }">
 <c:if test="${item==page}">
   &nbsp;<c:out value="${item}"/>&nbsp;
 </c:if>
  <c:if test="${item!=page}">
   &nbsp;<a href="./index/<c:out value="${item}"/>"><c:out value="${item}"/></a>&nbsp;
 </c:if>
   </c:if>
   
   
   </c:forEach> 
   
    <c:if test="${  countPage-page >=  3  }" >
  ......
  </c:if>
 下一页 
  </body>
</html>
